﻿{include file="Public/public" /}
<body>
 <div class="wrap">
  <div class="page-title">
    <span class="modular fl"><i></i><em>修改轮播</em></span>
  </div>
  <form action="/adminnews/updatelunbo" method="post"  enctype="multipart/form-data">
  <table class="list-style">
    <tr>
    <td style="text-align:right;">展示图片：</td>
    <td>
     <input type="file" id="suoluetu"  name="pic" onChange="previe(this)" class="hide"/>
     <label for="suoluetu" class="labelBtnAdd">+</label>
     <img src="/uploads/{$data['pic']}"  width="60" id="previewimg1" height="60" class="mlr5"/>
    </td>
   </tr>
   <tr> 
    <td style="text-align:right;width:15%;">链接：</td> 
    <td><input type="text" name="title" value="{$data['title']}" class="textBox length-long" /></td> 
   </tr> 
 <tr>   
    <td style="text-align:right;">详情图片：</td>
    <td>
     <input type="file" id="suoluetu1"  name="pics" onChange="previe1(this)" class="hide"/>
     <label for="suoluetu1" class="labelBtnAdd">+</label>
     <img width="60" src="/uploads/{$data['content']}" id="previewimg" height="60" class="mlr5"/>
    </td>
   </tr>
   <tr>
    <td style="text-align:right;">是否显示：</td>
    <td>
      <select class="textBox" name="status">
        <option value="0" {if condition="$data['status']==0"}selected{/if}>否</option>
        <option value="1" {if condition="$data['status']==1"}selected{/if}>是</option>
       </select>
    </td>
   </tr>
   <tr>
    <td style="text-align:right;"></td>
    <input type="hidden" name="id" value="{$data['id']}">
    <td><input type="submit" value="保存" class="tdBtn"/></td>
   </tr>
  </table>
  <form>
 </div>
</body>
</html>

<script type="text/javascript">  
            
            function previe(obj){
               var img1 = document.getElementById("previewimg1");  
                img1.src = window.URL.createObjectURL(obj.files[0]);  
            } 
             function previe1(obj){
               var img = document.getElementById("previewimg");  
                img.src = window.URL.createObjectURL(obj.files[0]);  
            } 
</script>  

